/**
 * Created by lsq on 2017/12/5.
 */

import Sequelize from 'sequelize';
let db = require("../DataBaseData");
let entity = {
    tableName: 'report_money',

    attributes: {
        dateNum: {
            type: Sequelize.INTEGER,
        },
        monthlyFee: {
            type: Sequelize.INTEGER,
        },
        singleFee: {
            type: Sequelize.INTEGER,
        },
        totalFee: {
            type: Sequelize.INTEGER,
        },
        createAt : {
            type: Sequelize.DATE,
        },
        channel: {
            type: Sequelize.STRING,
        }
    },
    options: {
        freezeTableName: true,
        timestamps: false
    }
};

export default db.define(entity.tableName, entity.attributes, entity.options);

